<template>
  <div class="outer">
    <Tab title="图片">
      <img src="./pic/baicai.jpg" alt="" />
    </Tab>
    <Tab title="游戏">
      <ul>
        <li v-for="(game, index) of tabData" :key="index">{{ game }}</li>
      </ul>
    </Tab>
    <Tab title="视频">
      <video width="100%" controls src="./pic/绿灯.mp4"></video>
    </Tab>
  </div>
</template>

<script>
import Tab from "@/components/Tab";
export default {
  name: "App",
  components: { Tab },
  data() {
    return {
      tabData: ["LoL", "DNF", "CS", "Dota"],
    };
  },
};
</script>

<style scoped>
.outer {
  width: 800px;
  display: flex;
  justify-content: space-between;
}
</style>
